package model.housedetail.service.impl;

import model.housedetail.entity.Detail;
import model.housedetail.mapper.DetailMapper;
import model.housedetail.service.IDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import java.util.List;

@Service
@Transactional
public class DetailServiceImpl implements IDetailService {

    @Autowired
    private DetailMapper detailMapper;

    @Override
    public void save(Detail detail) {
        detailMapper.save(detail);
    }

    @Override
    public void del(String detailId) {
        detailMapper.del(detailId);
    }

    @Override
    public List<Detail> findAll() {
        return detailMapper.findAll();
    }

    @Override
    public Detail findById(String id) {
        return detailMapper.findById(id);
    }

    @Override
    public Detail findByName(String evaluateUsername) {
        return detailMapper.findByName(evaluateUsername);
    }


}
